import { createContext } from "react";

interface User {
  name: string,
  age: number
}

const defaultUser: User = {
  name: "tom",
  age: 18
}

export const context = {
  user: defaultUser
}

export const AppContext = createContext({...context})